﻿namespace SystemWFH.API.DTO
{
    /// <summary>
    ///  where T : class,new()
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class ResultAPI<T>
    {
        /// <summary>
        /// 返回值=-1时表示请求有误代码=0表示正常运行
        /// </summary>
        public int Code { get; set; } = 1;
        /// <summary>
        /// 返回信息的时候会进行错误消息提示
        /// </summary>
        public string? Message { get; set; } = string.Empty;
        /// <summary>
        /// 根据想要返回对应的数据结果
        /// </summary>
        public T Data { get; set; }
    }
}
